﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace MS.INV
{
    public partial class Logo : DevExpress.XtraEditors.LabelControl
    {
        public Logo()
        {
            this.Size = new Size(150, 64);

            GraphicsPath _path = new GraphicsPath();
            _path.AddLine(0, 20, 20, 0);
            _path.AddLine(20, 0, 150, 0);
            _path.AddLine(150, 0, 150, 44);
            _path.AddLine(150, 44, 150 - 20, 64);
            _path.AddLine(150 - 20, 64, 0, 64);
            _path.AddLine(0, 64, 0, 44);

            this.Region = new Region(_path);
        }

        protected override void OnResize(EventArgs e)
        {
            this.Size = new Size(150, 64);
        }
    }
}
